<%--
  Created by IntelliJ IDEA.
  User: xingfuhao
  Date: 2021/5/6
  Time: 21:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>更新书籍</title>
</head>
<body>
    <h1>更新书籍</h1>
    <form action="${pageContext.request.contextPath}/update" method="post" enctype="application/x-www-form-urlencoded">
        <table>
            <tr>
                <td>编号</td>
                <td>
                    <input type="text" name="id" value="${book.id}" readonly="readonly">
                </td>
            </tr>
            <tr>
                <td>书名</td>
                <td>
                    <input type="text" name="title" value="${book.title}" >
                </td>
            </tr>
            <tr>
                <td>作者</td>
                <td>
                    <input type="text" name="author" value="${book.author}" >
                </td>
            </tr>
            <tr>
                <td>出版时间</td>
                <td>
                    <input type="text" name="publicDate" value='<fmt:formatDate value="${book.publicDate}" pattern="yyyy-mm-dd"/>' >
                </td>
            </tr>
            <tr>
                <td>出版社</td>
                <td>
                    <input type="text" name="publisher" value="${book.publisher}" >
                </td>
            </tr>
            <tr>
                <td>isbn</td>
                <td>
                    <input type="text" name="isbn" value="${book.isbn}" >
                </td>
            </tr>
            <tr>
                <td>价格</td>
                <td>
                    <input type="text" name="price" value="${book.price}" >
                </td>
            </tr>
            <tr>
                <td>图片</td>
                <td>
                    <input type="text" name="picture" value="${book.picture}" >
                </td>
            </tr>
            <tr>
                <td>类别</td>
                <td>
                    <input type="text" name="cid" value="${book.cid}" >
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="保存">
                    <input type="reset" value="重置">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
